<template>
    <div class="flex flex-col gap-10">
        <Upload list-type="picture-card" />
        <div>
            <h2>图片上传：</h2>
            <UploadImage v-model="imagePathList" />
            <a-button @click="insertImage">回显图片</a-button>
        </div>
        {{ imagePathList }}
    </div>
</template>

<script setup lang="ts">
import Upload from "@/components/upload/index.vue";

const imagePathList = ref<string | string[]>([]);

function insertImage() {
    imagePathList.value = "http://localhost:7001/static/image/file-1763494053109_795847072-&image_jpeg&-image.jpg";
}
</script>

<style scoped lang="scss"></style>
